package com.example.spring_vue.pojo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "email")
public class EmailProperties {

    //发件人
    //@Value("${email.user}")
    public String user;
    //发件人邮箱授权码
    //@Value("${email.code}")
    public String code;
    //发件人邮箱对应的服务器域名，如果是163邮箱：smtp.163.com  qq邮箱：smtp.qq.com
    //@Value("${email.host}")
    public String host;
    //身份验证开关
    //@Value("${email.auth}")
    private boolean auth;
}
